import { CollapseProps as AntdCollapseProps, Collapse } from 'antd';

interface CollapseProps extends AntdCollapseProps {
  children: React.ReactNode;
  className?: string;
}

export const AntdCollapse = ({ children, className, ...props }: CollapseProps) => {
  return (
    <div>
      <Collapse className={`eai-design-collapse ${className}`} {...props}>
        {children}
      </Collapse>
    </div>
  );
};

// 导出 Panel 子组件
export const { Panel } = Collapse;
